package com.ftg.learn.chapter10.base02.mapper;

import com.ftg.learn.chapter10.base02.mapper.sql.StudentSql;
import com.ftg.learn.chapter10.base02.vo.StudentListVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * @author 布衣
 */
public interface StudentMapper {

    @SelectProvider(type = StudentSql.class, method = "listSql")
    List<StudentListVo> list(@Param("stuName") String stuName, @Param("className") String className);

//    @SelectProvider(type = StudentSql.class,method = "listSql")
//    List<StudentListVo> list(@Param("stuName") String stuName, @Param("className") String className,
//                             @Param("start") Integer start, @Param("pageSize") Integer pageSize);
//
//    @SelectProvider(type = StudentSql.class,method = "countSql")
//    Integer count(@Param("stuName") String stuName, @Param("className") String className);

}
